package com.ly.count.customexception;

import org.apache.commons.lang3.StringUtils;

public class CountRunTimeException extends RuntimeException{
    private String errorCode;

    public CountRunTimeException(String errorCode, String message) {
        super(message);
        if(StringUtils.isEmpty(errorCode)){
            errorCode = "000000";
        }
        this.errorCode = errorCode;
    }

    public String getErrorCode() {
        return errorCode;
    }
}
